Recently, the use of relational database to achieve the user's attention, so think of a different way of thinking, using Redis to achieve the user's attention relationship.After taking a look at some of the data structures of Redis, I think we can implement them with a set.Suppose the ID of "I" is 1, and the ID of "others" is 2.First, add attentionAdd attention to two steps: 1. Add the ID to your watchlist and 2. Add your own ID to the other's fan li
Sina Weibo's engineers have talked about it in several public places, and Weibo is currently using and maintaining the world's largest Redis cluster, one of the largest businesses, with a single business using more than 10T of memory, and this is what it says about Weibo relationships.Wind upWhen Weibo was just on the line in 2009, the Weibo relationship service was using the most traditional memcache+mysql solution. Mysql by the UID hash of the Sub-database table, the table structure is very si
Recently, the use of relational database to achieve the user's attention, so think of a different way of thinking, using Redis to Achieve the user's attention relationship.After taking a look at some of the data structures of Redis, I think we can implement them with a set.Suppose the ID of "I" is 1, and the ID of "others" is 2.First, add attentionAdd attention to two steps: 1. Add the ID to your watchlist and 2. Add your own ID to the other's fan l
beSustained (persistent)-You use the most optimistic analyst's estimate (Evaluation), discount (discount) or negative.
2. Create your own database
It took me nearly ten years to build and improve my own database. Currently, the database has about 300 million stocks, the U.S. shares account for 2/3, the European shares account for 1/4, and the rest are Asia Pacific countries (South Korea and so on ). At present, there are no Chinese stocks and no Latin American stocks. Latin American stocks ofte
Function Description: Green Tags: concerns, blue Tags: mutual attention, Red Label: not concerned about1. Questions(1) To open my watchlist, which should appear in the green or blue label, but sometimes there will be red tags, click on the user, found to have been concerned about the status.(2) I am A, I focus on B, then I open B's watchlist, I found a list of B's watch
L2 the model is, the more difficult it is to fit. ' Subsample ': 0.7, # Random sampling training Samples ' colsample_bytree ': 0.7, # The column sampled when the tree was generated ' min_child_weight ': 3, # This parameter defaults to 1, is each leaf inside H and at least how much, the positive and negative sample
In the 0-1 classification of this imbalance #, assuming H is near 0.01, Min_child_weight 1 means that at least 100 samples are required for leaf nodes.
#这个参数非常影响结果, the minimum value
refer to the current market on the common AP Centralized management methods, the most common is the CAPWAP and HTTP management of two major categories. CAPWAP is trying to solve the WTP management standards problem, but the actual market situation is not ideal. Because of the interests of the relationship, the manufacturers have claimed that they are supporting CAPWAP , but it is impossible to achieve compatibility. Another aspect,CAPWAP has some complexity, and open source Opencapwap is just a
The query needs are as follows:
1. Query which users are concerned.
2. Which users are concerned about the query.
3. Query and a common list of concerns for a user.
4. Whether the query concerns each other.
The above functions can be achieved with a table in the form of user_id follow_user_id add_time columns.
But the attention volume is larger, need to according to user ID to divide the table. I don't know how to design a table structure well.
Ask your friends, please give me a lot of advic
1 This program is markedThe daily crawl is the basic information of Sina Weibo users, such as user nickname, Avatar, User's attention, fan list toand posted tweets, etc., which are captured and saved to MongoDB.2. How to Achieve:Take a few big V of Weibo as a starting point, crawl through their fans and watchlist, then get fans and watchlist followers and watchlist
The idea of crawlingFirst we should find an account, this account is concerned about the person and the people concerned are relatively more, is the top of the pyramid, and then by crawling the information of the account, then crawl his attention and the people who are concerned about the account information, and then crawl the attention of the person's account information and the attention of the information list, Crawl the information of these users and crawl through this recursive way all of
This post was last edited by anydy2008 on 2013-10-11 10:43:13
The query needs are as follows:
1. Query which users are concerned.
2. Which users are concerned about the query.
3. Query and a common list of concerns for a user.
4. Whether the query concerns each other.
The above functions can be achieved with a table in the form of user_id follow_user_id add_time columns.
But the attention volume is larger, need to according to user ID to divide the table. I don't know how to design a table
-intensive, very consumption of hardware;
Complex maintenanceConsistent maintenance costs are increasingly high;BerkeleyDB use B-tree, will always write new, there will not be a file re-organization, which will lead to larger files, the big time to file archiving, archiving operations to be done on a regular basis;In this way, it is necessary to have a certain down time;
Based on the above considerations, Redis 2 is selected. The way to find open source software and its judging criteria for open
The component is loaded the first time it is initialized.ImportReact, {proptypes} from ' React ';//import Appcomposer from './views/app/appcomposer ';//import Logincomposer from './views/login/logincomposer ';//import Homecomposer from './views/home/homecomposer ';//import Watchlistcomposer from './views/watchlist/watchlistcomposer ';//import Systemlogcomposer from './views/systemlog/systemlogcomposer ';//import Teammanagecomposer from './views/teamma
here I set the starting URL to the home page.After that is the seed user's personal homepage, know that many fans of the Big V a lot, but the attention of more people is more difficult to find, here I chose the Zhihu, co-founder, presumably concerned about a lot of high-quality users (???).Analysis of the personal page, the personal page is composed of ' https://www.zhihu.com/people/' + user ID, we want to get information is used callback callback function (knock the blackboard!!) Draw the key!
:
Stealing red envelopes to implement code
Sent by the receiving system.AccessibilityEvent
private static final String Get_red_packet = "Collect red envelopes";
private static final String Check_red_packet = "View Red envelopes";
private static final String red_packet_picked = "Hange, red envelope sent out";
private static final String Red_packet_picked2 = "Luck";
private static final String Red_packet_picked_detail = "red envelope details";
private static final String
when the difference between the two iterations is less than Tol. This should be adjusted according to your own data. VERBOSE: Output training content, in the beginning of the experiment in general look at the training content easier to help find ways to improve.
In LR, divide well in general, many other models can do better than LR, so few people specifically on the LR of the tuning to do a lot of work. If our project, positive and negative samples should be linear, so that no matter what the s
Read interface users/show get user information new Users/domain_show get user information through a personalized domain name users/counts Get the number of fans, followers, and tweets in bulk
relationship Follow read interface friendships/friends get the user's watchlist friendships/ Friends/in_common get a list of common followers friendships/friends/bilateral get bi-directional watchlist fri
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.